package rede;

import java.util.ArrayList;
import java.util.List;

public class NeuronioOut {

  private boolean ativado;
  private List<SinapseHidden> sinapses;
  private Bias bias;
  private double input;
  private double somaPesosSinapsesHidden;
  private double erroInformacao;

  public NeuronioOut () {
    sinapses = new ArrayList<SinapseHidden>();
    bias = new Bias();
  }

  public void adicionaNaSoma (double valor) {
    somaPesosSinapsesHidden = somaPesosSinapsesHidden + valor;
  }

  /**
   * @return the ativado
   */
  public boolean isAtivado () {
    return ativado;
  }

  /**
   * @param ativado
   *          the ativado to set
   */
  public void setAtivado (boolean ativado) {
    this.ativado = ativado;
  }

  /**
   * @return the sinapses
   */
  public List<SinapseHidden> getSinapses () {
    return sinapses;
  }

  /**
   * @param sinapses
   *          the sinapses to set
   */
  public void setSinapses (List<SinapseHidden> sinapses) {
    this.sinapses = sinapses;
  }

  /**
   * @return the input
   */
  public double getInput () {
    return input;
  }

  /**
   * @param input
   *          the input to set
   */
  public void setInput (double input) {
    this.input = input;
  }

  /**
   * @return the somaPesosSinapsesHidden
   */
  public double getSomaPesosSinapsesHidden () {
    return somaPesosSinapsesHidden;
  }

  /**
   * @param somaPesosSinapsesHidden
   *          the somaPesosSinapsesHidden to set
   */
  public void setSomaPesosSinapsesHidden (double somaPesosSinapsesHidden) {
    this.somaPesosSinapsesHidden = somaPesosSinapsesHidden;
  }

  /**
   * @return the erroInformacao
   */
  public double getErroInformacao () {
    return erroInformacao;
  }

  /**
   * @param erroInformacao
   *          the erroInformacao to set
   */
  public void setErroInformacao (double erroInformacao) {
    this.erroInformacao = erroInformacao;
  }

  /**
   * @return the bias
   */
  public Bias getBias () {
    return bias;
  }

  /**
   * @param bias
   *          the bias to set
   */
  public void setBias (Bias bias) {
    this.bias = bias;
  }

}
